<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<title>包预览页面</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/bootstrap/bootstrap.css">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/bootstrap/pack.css">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/bootstrap/ComboBox.js">
		<script type="text/javascript" src="${pageContext.request.contextPath}/bootstrap/jquery.js"  > </script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/util/util.js" ></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/util/Constant.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/package/model.js"  ></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/package/packIndex.js"  ></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/package/packContainer.js"  ></script>
	</head>
	<body>
		<div style="overflow: hidden">
			<div class="next" style="text-align:right;margin-top:20px;margin-right:4%;">
				<input type="button" value="关闭 "  onclick="closeDisplay();" />
			</div>
		    <div id="previewDiv">
	    </div>
		<form action=PackagePathDispatcher method="post" id="redirect_content">
				<input type="hidden" id="path_content" name="path"/>
		</form>
		</div>
	</body>
	<script type="text/javascript">
	<%
		String packageId =  request.getParameter("packageId");
		String packageAreaId =  request.getParameter("packageAreaId");
	%>


		var g_packageId = '<%= packageId%>';
		var g_pareaId = '<%= packageAreaId%>';

		pack.gPackInfo = pack.gPackInfo || {};
		pack.gPackInfo.packId = g_packageId;

		pack.gPackInfo.areaId = g_pareaId;

		pack.gPackInfo.baseInfo={};
		var packOp = new  pack.packContainer({
					displayId : '#previewDiv'
				});


	    function closeDisplay(){
			var nextPath = 'packageManager.jsp';
			$("#path_content").attr('value', nextPath);
			$("#redirect_content").submit();
		}
	</script>
</html>